home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / acpi / suspend.d / 55-down-interfaces.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2006-10-15  |  310 b   |  17 lines

  1. #!/bin/sh
  2.  
  3. pccardctl eject
  4.  
  5. # Get rid of any currently running dhclients
  6. killall dhclient dhclient3 2>/dev/null
  7.  
  8. # Find the currently running network interfaces...
  9. INTERFACES=`/sbin/ifconfig | awk '/^[^ ]+/ {print $1}'`
  10.  
  11. # And shut them down
  12. for x in $INTERFACES; do
  13.     ifdown $x;
  14.     ifconfig $x down;
  15. done
  16.  
  17.